package com.wjjun.databinding;

import android.databinding.BindingAdapter;

import com.wjjun.customview.views.PayPwdInputView;

/**
 * 支付密码输入框
 * Created by 67535 on 2018/5/15.
 */
public class PayPwdInputViewAdapter {

    @BindingAdapter(value = {"onPasswordListener"})
    public static void setInputListener(PayPwdInputView payPwdInputView, PayPwdInputView.onPasswordListener listener) {
        if (listener != null) {
            payPwdInputView.setOnPasswordListener(listener);
        }
    }

    @BindingAdapter(value = "comparePwd")
    public static void setComparePwd(PayPwdInputView payPwdInputView, String comparePwd) {
        payPwdInputView.setComparePassword(comparePwd);
    }
}
